<template>
	<view>
		
		<z-paging :show-refresher-when-reload="true"  show-refresher-update-time  ref="paging" v-model="list" @query="queryList">
			<!-- z-paging默认铺满全屏，此时页面所有view都应放在z-paging标签内，否则会被盖住 -->
			<!-- 需要固定在页面顶部的view请通过slot="top"插入，包括自定义的导航栏 -->
			<view slot="top" class="">
				<u-navbar :borderBottom="false" back-text=" " :title="title"></u-navbar>
			</view>
			<view slot="loadingMoreNoMore" ></view>
			<view class="help_box">
				<view  v-for="(item,index) in list" @click="navTo('/pages/xieyi/xieyi?title='+item.name+'&id='+item.id)" class="help_box_item">
					<span>{{item.name}}</span>
					<image style="width: 24rpx; height: 24rpx;margin-left: 8rpx;"
						src="https://www.mengkahuyu.com/index_png/back.png" mode=""></image>
				</view>
				<!-- <view   @click="navTo('/pages/xieyi/xieyi?title=2')" class="help_box_item">
					<span>赔付必读</span>
					<image style="width: 24rpx; height: 24rpx;margin-left: 8rpx;"
						src="https://www.mengkahuyu.com/index_png/back.png" mode=""></image>
				</view>
				<view  @click="navTo('/pages/xieyi/xieyi?title=3')" class="help_box_item">
					<span>公告信息</span>
					<image style="width: 24rpx; height: 24rpx;margin-left: 8rpx;"
						src="https://www.mengkahuyu.com/index_png/back.png" mode=""></image>
				</view> -->
			</view>
			
		</z-paging>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'帮助中心',
				list:[],
			}
		},
		onShow() {
		},
		methods: {
			queryList(pageNo, pageSize){
				var data = {
					"page":pageNo, //页码
					"limit": pageSize, //条数
				}
				this.$wqzApi.index_new(data).then(res=>{
					this.$refs.paging.complete(res.data.list);
				}).catch(err=>{
					this.$refs.paging.complete(false);
				})
			},
			navTo(url){
				uni.navigateTo({
					url:url
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import url(./index.scss);
</style>
